//
//  DVImagePickerManager.h
//  ImagePicker
//
//  Created by csh on 16/4/13.
//  Copyright © 2016年 com.read. All rights reserved.
//
#import <Photos/Photos.h>
#import <UIKit/UIKit.h>
#import "DVAssetModel.h"
#import "DVAlbumModel.h"
#import <Foundation/Foundation.h>

@interface DVImagePickerManager : NSObject
+(instancetype)manager;
- (void)getAlbumWithCompletion:(void(^)(DVAlbumModel *model))completion;
- (void)getPhotosWithAlbum:(id)result completion:(void(^)(NSArray <DVAssetModel *> *photoArray))completion;
- (void)getPhotoWithAsset:(id)asset imageWidth:(CGFloat)width Widthcompletion:(void(^)(UIImage *image))completion;


//获取原图
- (void)getPhotoWithAsset:(id)asset completion:(void (^)(UIImage * image, NSDictionary *info, BOOL isDegraded))completion ;
- (void)getOriginalPhotoWithAsset:(id)asset completion:(void (^)(UIImage *photo,NSDictionary *info))completion;

//保存照片
- (void)insertImage:(UIImage *)image withCompletion:(void(^)(id result))completion;

//获取相册
//- (void)getFetchResultWithCompletion:(void(^)(PHFetchResult *result))completion;
- (void)getFetchResultWithCompletion:(void(^)(NSMutableArray *array))completion;
//照片流
-(void)getMyPhotoStreamResultWithCompletion:(void(^)(NSMutableArray<PHAssetCollection *>*array))completion;
//QQ WEIBO
-(void)getQQWEIBOResultWithCompletion:(void(^)(NSMutableArray<PHAssetCollection *>*array))completion;
//相机胶卷
-(void)getAlbumUserLibraryWithCompletion:(void(^)(NSMutableArray<PHAssetCollection *>*array))completion;
@end

